{% extends 'base.html' %}
{% from 'macros.html' import form_field %}
{% block head %}
    {{ super() }}
<script src="https://cdn.ckeditor.com/4.10.1/standard/ckeditor.js"></script>
{% endblock %}
{% block title %}发布新的文章{% endblock %}
{% block content %}
    <br>
    <div class="page-header">
        <h1>发布新的文章</h1>
    </div>


    <div class="col-sm-12 post-form form-control">
        <form action="" method="post">
            {{ form.csrf_token }}
            <div class="form-group required">
                {{ form_field(form.title) }}
            </div>
            <div class="form-group required">
                {{ form_field(form.category) }}
            </div>
            <div class="form-group required">
                {{ form_field(form.body) }}
            </div>
            {{ form.submit(class='btn btn-primary') }}
        </form>
    </div>



{% endblock %}

